/*
 * @Author: boyyang
 * @Date: 2022-01-04 15:33:53
 * @LastEditTime: 2022-02-23 17:52:22
 * @LastEditors: boyyang
 * @Description: 设置文档title
 * @FilePath: \boyyang\src\utils\setDocumentTitle.ts
 */

/**
 * @description: 
 * @param {string} title
 * @return {*}
 */
const setTitle = (title: string | unknown | undefined): void => {
    if (title) {
        document.title = title as string
    }
}

export {
    setTitle
}
